import { createRouter, createWebHashHistory } from 'vue-router'
import PpcView from '../views/PpcView.vue'
const routes = [
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/two',
    name: 'two',
    component: () => import('../views/TwoView.vue')
  }
  ,
  {
    path: '/three',
    name: 'three',
    component: () => import('../views/ThreeView.vue')
  }
  ,
  {
    path: '/four',
    name: 'four',
    component: () => import('../views/FourView.vue')
  }
  ,
  {
    path: '/ppc',
    name: 'ppc',
    component: () => import('../views/PpcView.vue'),
    // children:[
    //   {
    //     path: "show",
    //     component: () => import('../components/Show.vue')
    //   }
    // ]
  },
  {
    path: '/show/:id?',
    name: 'show',
    component: () => import('../components/Show.vue')
  },
  {
    path: '/merch/:id?',
    name: 'merch',
    component: () => import('../components/XiangQZhou.vue')
  },
  {
    path: '/crowdfunding/:id?',
    name: 'crowdfunding',
    component: () => import('../components/CrowdFunding.vue')
  }
  ,
  {
    path: '/movie',
    name: 'movie',
    component: () => import('../views/MovieView.vue')
  },
  {
    path: '/detail/:id',
    name: 'detail',
    component: () => import( '../views/DetailView.vue')
  },

  {
    path: '/ab',
    name: 'ab',
    component: () => import('../views/Ab.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/HomeView.vue')
  },
  {
    path: '/form',
    name: 'form',
    component: () => import('../views/Form.vue')
  },
  // {
  //   path: '/:pathMatch(.*)',
  //   name: "error",
  //   component:() => import("../views/ErrorView.vue"),
  // },
  {
    path: '/ms',
    name: 'ms',
    component: () => import('../views/Ms.vue')
  },
  {
    path: '/yh',
    name: 'yh',
    component: () => import('../views/Yh.vue')
  },
  {
    path: '/yc',
    name: 'yc',
    component: () => import('../views/Yc.vue')
  },
  {
    path: '/tz',
    name: 'tz',
    component: () => import('../views/Tz.vue')
  },
  {
    path: '/sJia',
    name: 'sJia',
    component: () => import('../views/SJia.vue')
  },
  {
    path: '/ZhongC',
    name: 'ZhongC',
    component: () => import('../views/ZhongC.vue')
  },
  {
    path: '/',
    name: 'login',
    component: () => import('../views/LoginView.vue'),
    meta: {
      requireAuth: false,
    }
  },
  {
    path: '/yanchuDD',
    name: 'yanchuDD',
    component: () => import('../components/MyYan.vue')
  },
  {
    path: '/zhoubianDD',
    name: 'zhoubianDD',
    component: () => import('..//components/MyZhou.vue')
  },
  {
    path: '/zhongchDD',
    name: 'zhongchDD',
    component: () => import('../components/MyZhong.vue')
  },
  {
    path: '/shoucang',
    name: 'shoucang',
    component: () => import('../components/MyShou.vue')
  },
  {
    path: '/fankui',
    name: 'fankui',
    component: () => import('../components/MyFan.vue')
  },
  {
    path: '/addArticle',
    name: 'addArticle',
    component: () => import('../components/AddArticle.vue')
  },
  {
    path: '/Xiajia',
    name: 'Xiajia',
    component: () => import('../views/Xiajia.vue')
  },
  {
    path: '/Upshow/:id?',
    name: 'Upshow',
    component: () => import('../components/Upshow.vue')
  },
  {
    path: '/Upmerch/:id?',
    name: 'Upmerch',
    component: () => import('../components/Upmerch.vue')
  },
  {
    path: '/Upcrowdfunding/:id?',
    name: 'Upcrowdfunding',
    component: () => import('../components/Upcrowdfunding.vue')
  },
  {
    path: '/employeeLoginView',
    name: 'employeeLoginView',
    component: () => import('../views/EmployeeLoginView.vue')
  },
  {
    path: '/LoginAdd',
    name: 'LoginAdd',
    component: () => import('../views/LoginAdd.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
